package com.quanyan.util;/**
 * Created by Administrator on 2016/5/4.
 */

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

/**
 * ApplicationUtil
 * description
 *
 * @author chuntu tuchun168@163.com
 * @date 2016/5/4 10:26
 */
public class ApplicationUtil {
    private static ApplicationContext context;
    private ApplicationUtil(){

    }
    public synchronized static ApplicationContext getInstance(){
        if(context==null){
            context = new FileSystemXmlApplicationContext("classpath:application-profile.xml");
        }
        return context;
    }
}
